[rocprofiler-sdk] Fix categories filtering in rocpd analysis tool#4161
[rocprofiler-sdk] Fix categories filtering in rocpd analysis tool#4161
Conversation
ebe10d3 to
aff6c21
Compare
0b79065 to
db12fcf
Compare
yhuiYH
left a comment
There was a problem hiding this comment.
When running ctest -R rocpd, I'm seeing it tried adding 4 additional tests that fail but I don't think you intended those to be added. Can you fix pls?
623 - tests.integration.validate.rocprofv3-test-rocpd-region-category-validation.test_perfetto_data (Failed) integration-tests validation
624 - tests.integration.validate.rocprofv3-test-rocpd-region-category-validation.test_otf2_data (Failed) integration-tests validation
625 - tests.integration.validate.rocprofv3-test-rocpd-region-category-validation.test_otf2_system_tree_node_data (Failed) integration-tests validation
626 - tests.integration.validate.rocprofv3-test-rocpd-region-category-validation.test_csv_data (Failed) integration-tests validation
Co-authored-by: Young Hui - AMD <145490163+yhuiYH@users.noreply.github.com>
@yhuiYH Good catch. I was reusing validate.py, so the target also registered the existing generic validation tests (otf2, cvs, etc) in that file. I moved the region-category checks into a separate |
yhuiYH
left a comment
There was a problem hiding this comment.
LGTM now.
FYI, --region-categories was supposed to just filter out the API regions, that's why it ignored the views. But I'm ok with this PR overloading the filter functionality for the users.
Was thinking of renaming the flag --region-categories to a generic --filter-categories, but I think we can just leave it as is for now, to minimize changes.
Jonathan may mention we were planning on adding generic filtering to all the rocpd modules. However, that implementation is based on the newer rocpd_info_category table, so we will move there with the future schema changes: 654e02b
Motivation
Currently, using
--region-categorieswith rocpd2summary does not show expected filtered output.e.g. The memory regions should not be displayed:
The expected behavior is
--region-categories NONEexcludes all region domain categories, leaving only summaries for all views like kernels, memory allocations, scratch_memory, etcOutput:
Technical Details
JIRA ID
Resolves AIPROFSDK-14 partially
Test Plan
Added new tests for
--region-categoriesTest Result
New tests pass.
Submission Checklist